<?php
session_start();
include("conn.php");
date_default_timezone_set("PRC");
$xh=$_POST['xh'];
$name=$_POST['name'];
$xb=$_POST['xb'];
$bj=$_POST['bj'];
$zy=$_POST['zy'];
$dh=$_POST['dh'];
$jtdz=$_POST['jtdz'];
$result=mysqli_query($link,"update xs set xh='$xh',name='$name',xb='$xb',bj='$bj',zy='$zy',dh='$dh',jtdz='$jtdz' where xh=$xh  ");
if($result)
    {
        echo "<script>alert('学生信息修改成功！');location='index2.php';</script>";
    }
    else
    {
        echo "<script>alert('学生信息修改失败！');</script>";
    }
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

